export const formList = [
  {
    key: "url",
    label: "网址链接",
    placeholder: "请输入",
  },
  {
    key: "change_type",
    label: "变更类型",
    type: "slot"
  },
  {
    key: "change_before",
    label: "变更前",
    // type: "dict",
    // dictKey: "",
    placeholder: "请输入",
  },
  {
    key: "change_after",
    label: "变更后",
    // type: "dict",
    // dictKey: "",
    placeholder: "请输入",
  },
  {
    key: "date",
    label: "发现时间",
    type: "dateRange",
    showTime: true,
    placeholder: "请选择",
  },
];

export const columns = [
  {
    title: "序号",
    customRender: ({ index }: any) => index + 1,
    width: 80
  },
  {
    title: "网址链接",
    dataIndex: "url",
  },
  {
    title: "变化类型",
    dataIndex: "change_type",
  },
  {
    title: "变化属性",
    dataIndex: "change_attr",
    slots: { customRender: "change_attr" },
  },
  {
    title: "变化前",
    dataIndex: "change_before",
    width: 400,
    slots: { customRender: "change_before" },
  },
  {
    title: "变化后",
    dataIndex: "change_after",
    width: 400,
    slots: { customRender: "change_after" },
  },
  {
    title: "变化截图",
    dataIndex: "change_image",
    width: 220,
    slots: { customRender: "change_image" },
  },
  {
    title: "发现时间",
    dataIndex: "created_at",
  },
  {
    title: "上次检测时间",
    dataIndex: "up_time",
    slots: { customRender: "up_time" },
  },
  {
    title: "操作",
    slots: { customRender: "action" },
    width:240,
    fixed: 'right'
  },
];
